<!DOCTYPE HTML>
<html lang="en"  xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="author" content="Bootstrap-ecommerce by Vosidiy">

    <title>个人资料</title>

    <link rel="/shortcut icon" type="image/x-icon" href="/images/favicon.ico">

    <!-- jQuery -->
    <script src="/js/jquery-2.0.0.min.js" type="text/javascript"></script>

    <!-- Bootstrap4 files-->
    <script src="/js/bootstrap.bundle.min.js" type="text/javascript"></script>
    <link href="/css/bootstrap.css" rel="stylesheet" type="text/css"/>

    <!-- Font awesome 5 -->
    <link href="/fonts/fontawesome/css/fontawesome-all.min.css" type="text/css" rel="stylesheet">

    <!-- plugin: fancybox  -->
    <script src="/plugins/fancybox/fancybox.min.js" type="text/javascript"></script>
    <link href="/plugins/fancybox/fancybox.min.css" type="text/css" rel="stylesheet">

    <!-- custom style -->
    <link href="/css/ui.css" rel="stylesheet" type="text/css"/>
    <link href="/css/responsive.css" rel="stylesheet" media="only screen and (max-width: 1200px)" />

    <!-- custom javascript -->
    <script src="/js/script.js" type="text/javascript"></script>

    <script type="text/javascript">
        /// some script

        // jquery ready start
        $(document).ready(function() {
            // jQuery code

        });
        // jquery end
    </script>

</head>
<body>
<nav class="navbar navbar-expand-lg navbar-collapse  bg2">
    <form action="/HTML/userInfo" method="post" name="showUserInfoForm" >
        <a class="navbar-brand" href="javascript:history.go(-1)" name="savesubmit" id="savesubmit"> <img class="logo" src="/images/logo-dark.png" th:text="'  '+'管理员 · 用户订单详情'"></a>
        <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbar1" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
            <span class="navbar-toggler-icon"></span>
        </button>
    </form>
    <div class="collapse navbar-collapse" id="navbar1">
        <ul class="navbar-nav ml-auto">
            <li class="nav-item">
                <a class="btn ml-2 btn-outline-danger" href="/HTML/relogin">退出登录<span class="sr-only">(current)</span></a>
            </li>
            <a class="btn ml-2 btn-outline-success" href="/HTML/adminHome">返回主页</a>
            <form action="/HTML/searchUser" method="post" name="searchUser" >
                <button class="btn ml-2 btn-outline-danger" type="submit">用户列表<span class="sr-only"></span></button>
            </form>
            <form action="/HTML/adminShowOrderList" method="post" name="searchUser" >
                <button class="btn ml-2 btn-outline-primary" type="submit">订单列表<span class="sr-only"></span></button>
            </form>
        </ul>
    </div>
</nav>

<div class="card">
    <article class="card-body mx-auto" >
        <h4 class="card-title mt-3 text-center text-primary" th:text="'账户'+${order.account}+'，订单号为'+${order.orderId}+'的订单详情如下'"></h4>
        <h5 class="card-title mt-3 text-danger text-center" th:text="'— '+${order.hotelName}+' —'"></h5>
        <form action="/HTML/updateOrderByAdmin" method="post" name="form1" >
            <input name="orderId" class="form-control" th:value="${order.orderId}" type="hidden" readonly>
            <input name="account" class="form-control" th:value="${order.account}" type="hidden" readonly>
            <input name="hotelName"  class="form-control" th:value="${order.hotelName}" type="hidden" readonly>
            <div class="form-group input-group">
                <div class="input-group-prepend">
                    <span class="input-group-text">房号 </span>
                </div>
                <input name="roomNumber" class="form-control" th:value="${order.roomNumber}" type="text">
            </div> <!-- form-group// -->
            <div class="form-group input-group">
                <div class="input-group-prepend">
                    <span class="input-group-text">房间类型 </span>
                </div>
                <input name="roomType" class="form-control" th:value="${order.roomType}" type="text">
            </div> <!-- form-group// -->
            <div class="form-group input-group">
                <div class="input-group-prepend">
                    <span class="input-group-text">入住人数 </span>
                </div>
                <input name="inNumber" class="form-control" th:value="${order.inNumber}" type="text">
            </div> <!-- form-group// -->
            <div class="form-group input-group">
                <div class="input-group-prepend">
                    <span class="input-group-text">入住时间 </span>
                </div>
                <input name="inTime" class="form-control"  th:placeholder="'必填项:'+${order.inTime}"  type="text">
            </div> <!-- form-group// -->
            <div class="form-group input-group">
                <div class="input-group-prepend">
                    <span class="input-group-text">退房时间 </span>
                </div>
                <input name="outTime" class="form-control"  th:placeholder="'必填项:'+${order.outTime}" type="text">
            </div> <!-- form-group// -->
            <div class="form-group input-group">
                <div class="input-group-prepend">
                    <span class="input-group-text">单日价 </span>
                </div>
                <input name="price" class="form-control" th:value="${order.price}" type="text">
            </div> <!-- form-group// -->
            <div class="form-group input-group">
                <div class="input-group-prepend">
                    <span class="input-group-text">支付状态 </span>
                </div>
                <input name="paymentStatus" class="form-control" th:value="${order.paymentStatus}" type="text">
            </div> <!-- form-group// -->
            <div class="form-group input-group">
                <div class="input-group-prepend">
                    <span class="input-group-text">订单状态 </span>
                </div>
                <input name="orderStatus" class="form-control" th:value="${order.orderStatus}" type="text">
            </div> <!-- form-group// -->
            <div class="form-group">
                <button type="submit" class="btn btn-primary btn-block">确认修改</button>
            </div> <!-- form-group// -->
        </form>

    </article>
</div> <!-- card.// -->

<!-- ========================= FOOTER ========================= -->
<footer class="section-footer bg2">
    <div class="container">
        <section class="footer-bottom row">
            <div class="col-sm-6">
                <p> 四川大学实训项目 <br>  第六组作品</p>
            </div>
            <div class="col-sm-6">
                <p class="text-sm-right">
                    2019 · 7 · 8 <br>
                    中国 · 成都
                    <!--<a href="http://bootstrap-ecommerce.com">Bootstrap-ecommerce UI kit</a>-->
                </p>
            </div>
        </section> <!-- //footer-top -->
    </div><!-- //container -->
</footer>
<script type="text/javascript">
    window.onload=function isupdate(){
        var data1=document.getElementById("flag");
        if(data1=="0")
        {
            alert("修改成功");
        }
        else if(data1=="1")
        {
            alert("修改失败");
        }
    }
</script>
</body>
